Capsule API Example
Loading...
Searching...
No Matches
CDeviceLocator.h
Go to the documentation of this file.
1// Copyright. 2019 - 2024 PSBD. All rights reserved.
2
3#pragma once
4
5#include "CDefinesPrivate.h"
6#include "CDeviceInfoList.h"
7#include "CError.h"
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
21
31
33
41
51
55CLC_CLASS_WN(DeviceLocatorPrivate, clCDeviceLocator);
56
63
70CL_DLL clCDeviceLocator clCDeviceLocator_CreateWithLogDirectory(const char* logDirectory, clCError* error) NOEXCEPT;
71
77CL_DLL void clCDeviceLocator_Update(clCDeviceLocator locator) NOEXCEPT;
78
84CL_DLL void clCDeviceLocator_Destroy(clCDeviceLocator locator) NOEXCEPT;
85
96CL_DLL void clCDeviceLocator_RequestDevices(clCDeviceLocator locator, clCDeviceType deviceType, int32_t searchTime, clCError* error) NOEXCEPT;
97
101typedef void (*clCDeviceLocator_DeviceListHandler)(clCDeviceLocator, clCDeviceInfoList, clCDeviceLocator_FailReason) NOEXCEPT;
107
108#ifdef __cplusplus
109}
110#endif
#define NOEXCEPT
Definition CDefinesPrivate.h:82
#define CL_DLL
Definition CDefinesPrivate.h:51
#define CLC_CLASS_WN(Wrapped, Name)
Definition CDefinesPrivate.h:84
clCDeviceType
Device type.
Definition CDeviceInfo.h:14
CL_DLL clCCapsule_LogLevel clCCapsule_GetLogLevel() NOEXCEPT
CL_DLL void clCDeviceLocator_SetOnDeviceListEvent(clCDeviceLocator locator, clCDeviceLocator_DeviceListHandler handler) NOEXCEPT
CL_DLL clCDeviceLocator clCDeviceLocator_Create(clCError *error) NOEXCEPT
CL_DLL void clCCapsule_SetSingleThreaded(bool singleThreaded) NOEXCEPT
CL_DLL void clCDeviceLocator_RequestDevices(clCDeviceLocator locator, clCDeviceType deviceType, int32_t searchTime, clCError *error) NOEXCEPT
Find available devices. Search time is in seconds. Searches for available devices of chosen type....
CL_DLL void clCCapsule_SetLogLevel(clCCapsule_LogLevel logLevel) NOEXCEPT
clCDeviceLocator_FailReason
Device locator error.
Definition CDeviceLocator.h:16
@ clCDeviceLocator_FailReason_OK
Definition CDeviceLocator.h:17
@ clCDeviceLocator_FailReason_BluetoothDisabled
Definition CDeviceLocator.h:18
@ clCDeviceLocator_FailReason_Unknown
Definition CDeviceLocator.h:19
CL_DLL void clCDeviceLocator_Update(clCDeviceLocator locator) NOEXCEPT
clCCapsule_LogLevel
Definition CDeviceLocator.h:22
@ clCCapsule_LogLevel_Err
Definition CDeviceLocator.h:27
@ clCCapsule_LogLevel_Info
Definition CDeviceLocator.h:25
@ clCCapsule_LogLevel_Trace
Definition CDeviceLocator.h:23
@ clCCapsule_LogLevel_Warn
Definition CDeviceLocator.h:26
@ clCCapsule_LogLevel_Debug
Definition CDeviceLocator.h:24
@ clCCapsule_LogLevel_Off
Definition CDeviceLocator.h:29
@ clCCapsule_LogLevel_Critical
Definition CDeviceLocator.h:28
void(* clCDeviceLocator_DeviceListHandler)(clCDeviceLocator, clCDeviceInfoList, clCDeviceLocator_FailReason) NOEXCEPT
Device callback for the list of device info.
Definition CDeviceLocator.h:101
CL_DLL void clCDeviceLocator_Destroy(clCDeviceLocator locator) NOEXCEPT
CL_DLL clCDeviceLocator clCDeviceLocator_CreateWithLogDirectory(const char *logDirectory, clCError *error) NOEXCEPT
CL_DLL const char * clCCapsule_GetVersionString() NOEXCEPT
Definition CError.h:28